import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {SysPermissionsComponent} from './sys-permissions.component';

const routes: Routes = [
    {path: '', component: SysPermissionsComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-sys-permissions/add-sys-permissions.module#AddSysPermissionsModule'},
            {path: 'list', loadChildren: './list-sys-permissions/list-sys-permissions.module#ListSysPermissionsModule'},
            {path: 'modify', loadChildren: './modify-sys-permissions/modify-sys-permissions.module#ModifySysPermissionsModule'},
            {path: 'report', loadChildren: './report-sys-permissions/report-sys-permissions.module#ReportSysPermissionsModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class SysPermissionsRoutingModule {
}
